package pong.game.objects;

import pong.game.WifiType;
import pong.general.GameWindow;
import android.graphics.Bitmap;

public class Rectangle extends DinamicObject
{
	
	boolean leaveGameZone() 
	{
		return pos.x < 0 || pos.x + width > 1.0f || 
	        	pos.y < 0 || pos.y + height > 1.0f;
	}
	
	public Rectangle(Bitmap bitmap) 
	{
		super(bitmap);
	}
	public Rectangle(Bitmap bitmap, WifiType wifiType, float X, float Y, float height, float width)
	{
		super(bitmap, wifiType, X, Y, height, width);
	}
	public Rectangle(Bitmap bitmap, WifiType wifiType, float X, float Y)
	{
		super(bitmap, wifiType, X, Y, (float)bitmap.getHeight() / GameWindow.heightWorld,
				(float)bitmap.getWidth() / GameWindow.widthWorld);
	}

	



}
